﻿package com.obas.model.business
{
	import com.obas.model.business.Circuit;
	import com.obas.model.business.Entity;
	import com.obas.model.business.Location;

	[Bindable]
	[RemoteClass(alias="com.obas.model.business.CircuitAssociation")]
	
	public class CircuitAssociation
		extends
			com.obas.model.business.Entity
	{
		public static const ATTRIBUTE_AREAID:String="areaId";
		public static const ATTRIBUTE_SUBAREAID:String="subareaId";
		public static const COLUMN_AREA_ID:String="AREA_ID";
		public static const COLUMN_SUBAREA_ID:String="SUBAREA_ID";

		private var _areaId:Number;
		private var _area:com.obas.model.business.Location;
		private var _subareaId:Number;
		private var _subarea:com.obas.model.business.Location;
		private var _upperCircuitId:Number;
		private var _upperCircuit:com.obas.model.business.Circuit;
		private var _lowerCircuitId:Number;
		private var _lowerCircuit:com.obas.model.business.Circuit;
		private var _innerOrdinal:int;
		private var _outerOrdinal:int;

		public function CircuitAssociation()
		{
		}

		public function get areaId():Number
		{
			return _areaId;
		}

		public function set areaId(value:Number):void
		{
			_areaId = value;
		}

		public function get area():com.obas.model.business.Location
		{
			return _area;
		}

		public function set area(value:com.obas.model.business.Location):void
		{
			_area = value;
		}

		public function get subareaId():Number
		{
			return _subareaId;
		}

		public function set subareaId(value:Number):void
		{
			_subareaId = value;
		}

		public function get subarea():com.obas.model.business.Location
		{
			return _subarea;
		}

		public function set subarea(value:com.obas.model.business.Location):void
		{
			_subarea = value;
		}

		public function get upperCircuitId():Number
		{
			return _upperCircuitId;
		}

		public function set upperCircuitId(value:Number):void
		{
			_upperCircuitId = value;
		}

		public function get upperCircuit():com.obas.model.business.Circuit
		{
			return _upperCircuit;
		}

		public function set upperCircuit(value:com.obas.model.business.Circuit):void
		{
			_upperCircuit = value;
		}

		public function get lowerCircuitId():Number
		{
			return _lowerCircuitId;
		}

		public function set lowerCircuitId(value:Number):void
		{
			_lowerCircuitId = value;
		}

		public function get lowerCircuit():com.obas.model.business.Circuit
		{
			return _lowerCircuit;
		}

		public function set lowerCircuit(value:com.obas.model.business.Circuit):void
		{
			_lowerCircuit = value;
		}

		public function get innerOrdinal():int
		{
			return _innerOrdinal;
		}

		public function set innerOrdinal(value:int):void
		{
			_innerOrdinal = value;
		}

		public function get outerOrdinal():int
		{
			return _outerOrdinal;
		}

		public function set outerOrdinal(value:int):void
		{
			_outerOrdinal = value;
		}
	}
}